<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>订单详细</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<meta http-equiv="content-type" content="text/html;charset=utf-8">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		* {
			font-size: 11pt;
		}
		div {
			border: solid 2px gray;
			width: 75px;
			height: 75px;
			text-align: center;
		}
		li {
			margin: 10px;
		}

		#pay {
			background: url(<c:url value='/images/all.png'/>) no-repeat;
			display: inline-block;

			background-position: 0 -412px;
			margin-left: 30px;
			height: 36px;
			width: 146px;
		}
		#pay:HOVER {
			background: url(<c:url value='/images/all.png'/>) no-repeat;
			display: inline-block;

			background-position: 0 -448px;
			margin-left: 30px;
			height: 36px;
			width: 146px;
		}
	</style>
</head>

<body>
<h1>当前订单</h1>

<table border="1" width="100%" cellspacing="0" background="black">
	<c:forEach var="per" items="${orderList}">
		<c:if test="${per.oid == oid}" var="re">
			<tr bgcolor="gray" bordercolor="gray">
				<td colspan="6">
					订单编号：${per.oid}　成交时间：${per.ordertime}　金额：<font color="red"><b>${per.total}</b></font>　
				</td>
			</tr>
		</c:if>
	</c:forEach>

	<c:forEach var="perr" items="${transitList}">
		<c:if test="${oid == perr.oid}">
			<tr bordercolor="gray" align="center">
				<td width="15%">
					<div>
						<img style="width: 75px; height: 75px" src="<c:url  value='${perr.image}'/>"/>
					</div>
				</td>
				<td>书名：${perr.bname}</td>
				<td>作者：${perr.author}</td>
				<td>单价：${perr.price}元</td>
				<td>数量：${perr.count}</td>
				<td>小计：${perr.price * perr.count}元</td>
			</tr>
		</c:if>
	</c:forEach>


</table>
<br/>
<%--javascript:alert('别点了，再点就去银行页面了！');--%>

<c:forEach var="per" items="${orderList}">
	<c:if test="${per.oid == oid}" var="re">

<form method="get" action="/osc" id="form">
	收货地址：<input type="text" name="address" size="50" value="北京市海淀区金燕龙大厦2楼216室无敌收"/><br/>
	<input type="hidden" name="para" value="payed">
	<input type="hidden" name="oid" value="${per.oid}">
	选择银行：<br/>
	<input type="radio" name="pd_FrpId" value="ICBC-NET-B2C" checked="checked"/>工商银行
	<img src="../../bank_img/icbc.bmp" align="middle"/>
	<input type="radio" name="pd_FrpId" value="BOC-NET-B2C"/>中国银行
	<img src="../../bank_img/bc.bmp" align="middle"/><br/><br/>
	<input type="radio" name="pd_FrpId" value="ABC-NET-B2C"/>农业银行
	<img src="../../bank_img/abc.bmp" align="middle"/>
	<input type="radio" name="pd_FrpId" value="CCB-NET-B2C"/>建设银行
	<img src="../../bank_img/ccb.bmp" align="middle"/><br/><br/>
	<input type="radio" name="pd_FrpId" value="BOCO-NET-B2C"/>交通银行
	<img src="../../bank_img/bcc.bmp" align="middle"/><br/>
</form>

<a id="pay" href="javascript:document.getElementById('form').submit();"></a>


	</c:if>
</c:forEach>

</body>
</html>

